<!DOCTYPE html>
<!--
  ~ Copyright (C) 2018 guomw.Inc. All rights reserved.
  ~ 项目名称： mysite
  ~ 文件名称： pager.html
  ~ Date：18-9-26 下午5:13
  ~ Author: guomw
  -->

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="pager">
    <div style="background-color: #fff;height: 30px;">
        <div class="btn-group" style="float: left;line-height: 39px;">共<span
                class="pagination_recordCount">0</span>条记录，当前第<span
                class="pagination_pageIndex">1</span> /<span
                class="pagination_pageCount">1</span>，每页<span
                class="pagination_pageSize">20</span>条记录
        </div>
        <div class="btn-group pagination" style="float: right;">
            <button class="btn btn-white active">1</button>
        </div>
    </div>
</div>


<div th:fragment="pagertemplate(pageIndex,totalPages,totalRecords)">
    <div style="background-color: #fff;height: 30px;">
        <div class="btn-group" style="float: left;line-height: 39px;">共<span
                class="pagination_recordCount" th:text="${totalRecords}">0</span>条记录，当前第<span
                class="pagination_pageIndex" th:text="${pageIndex}">1</span> /<span
                class="pagination_pageCount" th:text="${totalPages==0?1:totalPages}">1</span>，每页<span
                class="pagination_pageSize">20</span>条记录
        </div>
        <div class="btn-group pagination" style="float: right;">
            <button class="btn btn-white active">1</button>
        </div>
    </div>
</div>
</html>